﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="LinQ查询示例.aspx.cs" Inherits="_35newpart_LinQ查询示例" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>LinQ查询</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataSourceID="LinqDataSource1">
            <columns>
                <asp:boundfield DataField="bookid" HeaderText="bookid" SortExpression="bookid">
                </asp:boundfield>
                <asp:boundfield DataField="mch" HeaderText="mch" SortExpression="mch">
                </asp:boundfield>
                <asp:boundfield DataField="pp" HeaderText="pp" SortExpression="pp">
                </asp:boundfield>
                <asp:boundfield DataField="qch" HeaderText="qch" SortExpression="qch">
                </asp:boundfield>
                <asp:boundfield DataField="jj" HeaderText="jj" SortExpression="jj">
                </asp:boundfield>
                <asp:boundfield DataField="rq" HeaderText="rq" SortExpression="rq">
                </asp:boundfield>
                <asp:boundfield DataField="jg" HeaderText="jg" SortExpression="jg">
                </asp:boundfield>
                <asp:boundfield DataField="zl" HeaderText="zl" SortExpression="zl">
                </asp:boundfield>
                <asp:boundfield DataField="xx" HeaderText="xx" SortExpression="xx">
                </asp:boundfield>
                <asp:boundfield DataField="isbn1" HeaderText="isbn1" SortExpression="isbn1">
                </asp:boundfield>
                <asp:boundfield DataField="tp" HeaderText="tp" SortExpression="tp">
                </asp:boundfield>
                <asp:boundfield DataField="nr" HeaderText="nr" SortExpression="nr">
                </asp:boundfield>
                <asp:boundfield DataField="ml" HeaderText="ml" SortExpression="ml">
                </asp:boundfield>
                <asp:boundfield DataField="bookname" HeaderText="bookname" 
                    SortExpression="bookname"></asp:boundfield>
                <asp:boundfield DataField="pingpai" HeaderText="pingpai" 
                    SortExpression="pingpai"></asp:boundfield>
                <asp:boundfield DataField="bookchuban" HeaderText="bookchuban" 
                    SortExpression="bookchuban"></asp:boundfield>
                <asp:boundfield DataField="bookdate" HeaderText="bookdate" 
                    SortExpression="bookdate"></asp:boundfield>
                <asp:boundfield DataField="kaiben" HeaderText="kaiben" SortExpression="kaiben">
                </asp:boundfield>
                <asp:boundfield DataField="yeshu" HeaderText="yeshu" SortExpression="yeshu">
                </asp:boundfield>
                <asp:boundfield DataField="banci" HeaderText="banci" SortExpression="banci">
                </asp:boundfield>
                <asp:boundfield DataField="zhuang" HeaderText="zhuang" SortExpression="zhuang">
                </asp:boundfield>
                <asp:boundfield DataField="isbn" HeaderText="isbn" SortExpression="isbn">
                </asp:boundfield>
                <asp:boundfield DataField="bookcontent" HeaderText="bookcontent" 
                    SortExpression="bookcontent"></asp:boundfield>
                <asp:boundfield DataField="bookmulu" HeaderText="bookmulu" 
                    SortExpression="bookmulu"></asp:boundfield>
                <asp:boundfield DataField="pingji" HeaderText="pingji" SortExpression="pingji">
                </asp:boundfield>
                <asp:boundfield DataField="shichangjia" HeaderText="shichangjia" 
                    SortExpression="shichangjia"></asp:boundfield>
                <asp:boundfield DataField="huiyuanjia" HeaderText="huiyuanjia" 
                    SortExpression="huiyuanjia"></asp:boundfield>
                <asp:boundfield DataField="vipjia" HeaderText="vipjia" SortExpression="vipjia">
                </asp:boundfield>
                <asp:boundfield DataField="bestbook" HeaderText="bestbook" 
                    SortExpression="bestbook"></asp:boundfield>
                <asp:boundfield DataField="tejiabook" HeaderText="tejiabook" 
                    SortExpression="tejiabook"></asp:boundfield>
                <asp:boundfield DataField="newsbook" HeaderText="newsbook" 
                    SortExpression="newsbook"></asp:boundfield>
                <asp:boundfield DataField="kucun" HeaderText="kucun" SortExpression="kucun">
                </asp:boundfield>
                <asp:boundfield DataField="chengjiaocount" HeaderText="chengjiaocount" 
                    SortExpression="chengjiaocount"></asp:boundfield>
                <asp:boundfield DataField="liulancount" HeaderText="liulancount" 
                    SortExpression="liulancount"></asp:boundfield>
                <asp:boundfield DataField="dazhe" HeaderText="dazhe" SortExpression="dazhe">
                </asp:boundfield>
                <asp:boundfield DataField="nclassid" HeaderText="nclassid" 
                    SortExpression="nclassid"></asp:boundfield>
                <asp:boundfield DataField="anclassid" HeaderText="anclassid" 
                    SortExpression="anclassid"></asp:boundfield>
                <asp:boundfield DataField="bookpic" HeaderText="bookpic" 
                    SortExpression="bookpic"></asp:boundfield>
                <asp:boundfield DataField="bookzz" HeaderText="bookzz" SortExpression="bookzz">
                </asp:boundfield>
                <asp:boundfield DataField="adddate" HeaderText="adddate" 
                    SortExpression="adddate"></asp:boundfield>
                <asp:boundfield DataField="pingjizong" HeaderText="pingjizong" 
                    SortExpression="pingjizong"></asp:boundfield>
                <asp:boundfield DataField="shjianame" HeaderText="shjianame" 
                    SortExpression="shjianame"></asp:boundfield>
                <asp:boundfield DataField="shjiaid" HeaderText="shjiaid" 
                    SortExpression="shjiaid"></asp:boundfield>
                <asp:boundfield DataField="bookid" HeaderText="ID自己" SortExpression="bookid">
                </asp:boundfield>
            </columns>
        </asp:GridView>
    
    </div>
    <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
        ContextTypeName="linq查询DataContext" TableName="books" OrderBy="bestbook">
    </asp:LinqDataSource>
    </form>
</body>
</html>
